package com.example.plugin;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

import androidx.annotation.Nullable;

import java.lang.reflect.Method;

public class MainActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void onclickView(View view) {
        try {
            Method print = null;
            Class<?> aClass = Class.forName("com.example.pluginapp.PluginApp");
            print = aClass.getMethod("print");
            print.invoke(null);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
